package com.qidian.mespro.mapper;

import com.qidianit.mes.pojo.pro.WorkflowProcess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Description:
 * @ Author: DuYaTao
 * @ Date: 2025/9/19 - 14:09
 */
public interface WorkflowProcessMapper {

    List<WorkflowProcess> selectList(WorkflowProcess workflowProcess);

    int  insert(WorkflowProcess workflowProcess);

    WorkflowProcess selectByWorkflowIdAndProcessId(@Param("workflowId") Long workflowId,@Param("processId") Long processId);

    WorkflowProcess selectById(Long id);

    /**
     * 修改工艺工序
     * @param workflowProcess
     * @return
     */
    int updateWorkflowProcess(WorkflowProcess workflowProcess);

    /**
     * 根据id删除工艺工序
     * @param id
     * @return
     */
    int deleteById(Long id);

    /**
     * 根据id批量删除工序工序
     * @param ids
     * @return
     */
    int batchDeleteByIds(Long[] ids);
}

